Here is what I have done...
In the subform where the menu code resides there is some pass-thru HTML:
<html>
<head>
</head>
<body>
<script type='text/javascript'>
function Go(){return}</script>
//<script type='text/javascript' src='HVMenu_Custom.js'></script>
//<script type='text/javascript' src='HVMenu_Code.js'></script>
</body>
</html>
I place this subform at the top of the forms that the menu is needed.
The form that worked did not have the "DBPath" and "Server_Name" fields on it. DBPath is a computed for display field set to:
"@ReplaceSubstring(@Subset(@DbName; -1); " " : "\\"; "+" : "/")"
Server_Name is a computed for display field that is set to itself: Server_Name.
The reason I used these fields is that I needed the "<base>" tag to correctly find the two (2) .js files I needed for the menu to work correctly.
The <base> tag was set in the HTML Head Content as:
"<base href=\"http://" + Server_Name + "/" + DBPath + "\" />"
However, I even set the <base> tag not to use variables and hard-coded the Server_Name and DBPath variables. The Menu would not appear, but the Syntax Error went away.
The settings above are from the article:
http://www.codestore.net/store.nsf/unid/EPSD-52UQZJ?OpenDocument
To get the Menu to work in every form correctly:
1. Removed DBPath and Server_Name fields
2. Set DBPath variable in HTML Head Content as:
DBPath := @ReplaceSubstring(@Subset(@DbName; -1); " " : "\\"; "+" : "/");
3. Removed "<base>" tag
4. Through Domino Designer, I previewed in Internet Explorer and they all worked
The only problem is now, when the Menu is used through the Frameset, the Home Page works because that is where the .js files are. When I open another form, we are back to square one: The Menu causes a Syntax Error or does not appear because it cannot reference/find those .js files.
So here is the dilemma:
Why does the Menu not appear when the "<base>" tag is referenced and then how do I reference the ".js" files for every document correctly if I cannot use the "<base>" tag?
Thanks!
Dan